<?php
/**
 * Created by PhpStorm.
 * User: change
 * Date: 2016/12/21
 * Time: 10:37
 * 疾病
 */
namespace Admin\Model;
use Base\Model\BaseModel;
class DiseasetypeModel extends BaseModel
{
    protected $_validate = array(
        array('typename', 'require', '分类名称必须填写'),
        array('typename', '', '分类名称已经存在', 0, 'unique', 3),
        array('typename','/^[a-zA-Z_\x{4e00}-\x{9fa5}]+$/u', '分类名称不符合规则！',3),
    );
    protected $_auto = array(
        array('status', '1'),
    );
}